An error occurs if the first detach was successful and the 2nd one is
authorEwan Mellor <ewan@xensource.com>
Sat, 16 Dec 2006 12:52:18 +0000 (12:52 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 16 Dec 2006 12:52:18 +0000 (12:52 +0000)
commit324ad7a4a8010ae406eccb0d42581db35418c9b4
tree1e5c505402fffc6a901410871386aeeb7761bde7
parent24a6ed484bf95f363a52b226e1edcd775eef1812
An error occurs if the first detach was successful and the 2nd one is
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xm/main.py